package com.piggy.logi.sys.service;


import com.piggy.logi.sys.domain.LogiWaybillReceiptLog;
import com.piggy.logi.sys.vo.LogiWaybillReceiptLogVo;
import com.piggy.logi.sys.bo.LogiWaybillReceiptLogQueryBo;
import com.piggy.logi.sys.bo.LogiWaybillReceiptLogEditBo;
import com.piggy.common.core.web.page.IServicePlus;

import com.piggy.common.core.web.page.TableDataInfo;

import java.util.Collection;
import java.util.List;

/**
 * 运单回单跟踪信息Service接口
 *
 * @author piggy
 * @date 2023-10-18
 */
public interface ILogiWaybillReceiptLogService extends IServicePlus<LogiWaybillReceiptLog> {
    /**
     * 查询单个
     *
     * @return
     */
    LogiWaybillReceiptLogVo queryById(Long id);

    /**
     * 查询列表
     */
    TableDataInfo<LogiWaybillReceiptLogVo> queryPageList(LogiWaybillReceiptLogQueryBo bo);

    /**
     * 查询列表
     */
    List<LogiWaybillReceiptLogVo> queryList(LogiWaybillReceiptLogQueryBo bo);

    /**
     * 根据新增业务对象插入运单回单跟踪信息
     *
     * @param bo 运单回单跟踪信息新增业务对象
     * @return
     */
    LogiWaybillReceiptLogVo insertByAddBo(LogiWaybillReceiptLogEditBo bo);

    /**
     * 根据编辑业务对象修改运单回单跟踪信息
     *
     * @param bo 运单回单跟踪信息编辑业务对象
     * @return
     */
    LogiWaybillReceiptLogVo updateByEditBo(LogiWaybillReceiptLogEditBo bo);

    /**
     * 校验并删除数据
     *
     * @param ids     主键集合
     * @param isValid 是否校验,true-删除前校验,false-不校验
     * @return
     */
    Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);
}
